class AddAttributesToCourseImages < ActiveRecord::Migration
  def self.up
    add_column :course_images , :course_id ,:integer
    add_column :course_images , :size ,:integer
    add_column :course_images , :filename ,:string
    add_column :course_images , :width ,:integer
    add_column :course_images , :height ,:integer
    add_column :course_images , :parent_id ,:integer
    add_column :course_images , :thumbnail ,:string
  end

  def self.down
    remove_column :course_images , :course_id ,:integer
    remove_column :course_images , :size ,:integer
    remove_column :course_images , :filename ,:string
    remove_column :course_images , :width ,:integer
    remove_column :course_images , :height ,:integer
    remove_column :course_images , :parent_id ,:integer
    remove_column :course_images , :thumbnail ,:string
  end
end
